package cn.tedu.hm.controller;

import cn.tedu.hm.pojo.vo.SalaryShowListItemVO;
import cn.tedu.hm.service.ISalaryShowService;
import cn.tedu.hm.wep.JsonResult;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author tj41h
 */
@Slf4j
@Validated
@RestController
@RequestMapping("/statistics/")
@Api(tags="10. 数据统计模块")
@Transactional
public class SalaryShowController {

    @Autowired
    private ISalaryShowService salaryShow;

    @GetMapping("salary")
    @ApiOperation("查询工资列表")
    @ApiOperationSupport(order = 420)
    public JsonResult<List<SalaryShowListItemVO>> list() {
        log.debug("开始处理【查询图片列表】的请求，无参数");
        List<SalaryShowListItemVO> list = salaryShow.list();
        return JsonResult.ok(list);
    }



}
